import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/support/swstoperatelog/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/support/swstoperatelog',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/support/swstoperatelog/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return request({
    url: '/support/swstoperatelog/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/support/swstoperatelog',
    method: 'put',
    data: obj
  })
}

export function delsObj(id) {
  return request({
    url: '/support/swstoperatelog/delBatch',
    method: 'delete',
    data:id
  })
}

export function getLogExpire(){
  return request({
    url: '/support/swstlogset',
    method: 'get'
  })
}

export function setLogExpire(obj){
  return request({
    url: '/support/swstlogset',
    method: 'put',
    data: obj
  })
}

export function recordBatch(obj){
  return request({
    url: '/support/swstoperatelog/recordBatch',
    method: 'post',
    data: obj
  })
}

